<script>
/* api start */
import { 
	_queryDetails  //根据id获取店铺详情
 } from "@/lib/api/shopServer/info";
/* api end */
/* vuex */
import { mapMutations } from "vuex";
export default {
    data(){
        return {};
    },
    methods:{
        ...mapMutations("shop", ["saveShopDetailInfo"]),
        // 获取店铺详情
        _queryDetails(){
            return _queryDetails(arguments[0]).then(data=>{
                this.saveShopDetailInfo(data.data);
                return Promise.resolve();
            }).catch(err=>{
                return Promise.reject({
                    getShopDetail:true
                });
            });
        }
    }
}
</script>